<%inherit file="admin/base_site.html"/>

${self.block_breadcrumbs()}<%def name="block_breadcrumbs()">
<div class="breadcrumbs">
     <a href="../../../../">${trans("Home")}</a> &rsaquo;
     <a href="../../../">${ capfirst(app_label)|escape }</a> &rsaquo; 
     <a href="../../">${opts.verbose_name_plural}</a> &rsaquo;
     <a href="../">${ escape(object) }</a> &rsaquo;
     ${trans('Delete')}
</div>
</%def>

${self.block_content()}<%def name="block_content()">

% if perms_lacking:

    <p><%def name="blocktrans_with_object_perms_lacking()">Deleting the ${object_name} '${object | escape}' would result in deleting related objects, but your account doesn't have permission to delete the following types of objects:</%def>${blocktrans_with_object_perms_lacking()}</p>
    <ul>
    
% for obj in perms_lacking:

        <li>${obj}</li>
    
% endfor

    </ul>

% else:

    <p><%def name="blocktrans_with_object()">Are you sure you want to delete the ${object_name} "${object | escape}"? All of the following related items will be deleted:</%def>${blocktrans_with_object()}</p>
    % for deleted_object in [deleted_objects]:
        <ul>${ unordered_list(deleted_object) }</ul>
    % endfor
    <form action="" method="post">${ csrf_tag(csrf_token) }
    <div>
    <input type="hidden" name="post" value="yes" />
    <input type="submit" value="${ trans ("Yes, I'm sure") }" />
    </div>
    </form>

% endif

</%def>
